Fix various uses of display-buffer and pop-to-buffer
authorChong Yidong <cyd@stupidchicken.com>
Sat, 10 Sep 2011 21:15:28 +0000 (17:15 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 10 Sep 2011 21:15:28 +0000 (17:15 -0400)
commit83ea7e43e57588d02e8b5f4edcb6be172816582a
tree9a8e6e4d9c704b28e28933aff2b321516892ca15
parentf62bb3a4aee4dda54a84df26413aa4bf154f3496
Fix various uses of display-buffer and pop-to-buffer
to avoid using special-display-* and same-window-* variables.

* lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
of display-buffer.
(Buffer-menu-2-window): Use switch-to-buffer-other-window.

* lisp/replace.el (occur-mode-goto-occurrence)
(occur-mode-display-occurrence) Use second arg of pop-to-buffer
and display-buffer.

* lisp/window.el (display-buffer-alist): Add *Python*.

* lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
display-buffer.

* lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
special-display and same-window variables.
(mail-other-window): Use switch-to-buffer-other-window.
(mail-other-frame): USe switch-to-buffer-other-frame.

* lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
display-buffer-other-frame.
(gdb-display-gdb-buffer): Use pop-to-buffer.

* lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.

* lisp/progmodes/python.el: Don't set same-window-buffer-names.

* lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
lisp/ChangeLog
lisp/buff-menu.el
lisp/mail/reporter.el
lisp/mail/sendmail.el
lisp/progmodes/compile.el
lisp/progmodes/gdb-mi.el
lisp/progmodes/gud.el
lisp/progmodes/python.el
lisp/replace.el
lisp/textmodes/bibtex.el
lisp/window.el